package server.locations;

import java.util.ArrayList;
import java.util.List;

public class Star {
	
	private List<Planet> planets;
	
	private String name;
	private int x,y;
	private StarColor sc;
	
	
	public Star(String name, int x, int y, StarColor sc )
	{
		this.name = name;
		this.x = x;
		this.y = y;
		this.sc = sc;
		
		this.planets = new ArrayList<Planet>();
		
	}
	
	public void addPlanet(Planet p)
	{
		this.planets.add(p);
	}
	public void removePlanet(Planet p)
	{
		this.planets.remove(p);
	}
	

}
